#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	int i=99;
	vector<int> vec;
	vec.push_back(boost::ref(i));
	vec.push_back(boost::ref(i));
	vec.push_back(boost::ref(i));

	i = 100;
	vec[0]=100;
	copy(vec.begin(), vec.end(),
			ostream_iterator<int>(cout,"\n"));

	//vector<int&> vecr; //error
}
